/*
'===============================================================================
'  Generated From - CSharp_EasyObject_BusinessEntity.vbgen
' 
'  ** IMPORTANT  ** 
'  How to Generate your stored procedures:
' 
'  SQL      = SQL_DAAB_StoredProcs.vbgen
'  
'  This object is 'abstract' which means you need to inherit from it to be able
'  to instantiate it.  This is very easily done. You can override properties and
'  methods in your derived class, this allows you to regenerate this class at any
'  time and not worry about overwriting custom code. 
'
'  NEVER EDIT THIS FILE.
'
'  public class YourObject :  _YourObject
'  {
'
'  }
'
'===============================================================================
*/

// Generated by MyGeneration Version # (1.3.0.3)

using System;
using System.Data;
using System.Data.Common;
using System.Configuration;
using System.Collections;
using System.Collections.Specialized;
using System.Xml;
using System.IO;

using Microsoft.Practices.EnterpriseLibrary.Data;
using NCI.EasyObjects;

namespace CMS.DAL
{

	#region Schema

	public class CruiseSchema : NCI.EasyObjects.Schema
	{
		private static ArrayList _entries;
		public static SchemaItem CruiseID = new SchemaItem("CruiseID", DbType.Int32, true, false, false, true, false, false);
		public static SchemaItem Title1 = new SchemaItem("Title1", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Title2 = new SchemaItem("Title2", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Title3 = new SchemaItem("Title3", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem InitContent1 = new SchemaItem("InitContent1", DbType.String, SchemaItemJustify.None, 1073741823, true, false, false, false);
		public static SchemaItem InitContent2 = new SchemaItem("InitContent2", DbType.String, SchemaItemJustify.None, 1073741823, true, false, false, false);
		public static SchemaItem InitContent3 = new SchemaItem("InitContent3", DbType.String, SchemaItemJustify.None, 1073741823, true, false, false, false);
		public static SchemaItem CruiseDurationID = new SchemaItem("CruiseDurationID", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem Images = new SchemaItem("Images", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Status = new SchemaItem("Status", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem PriceFrom = new SchemaItem("PriceFrom", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem PriceTo = new SchemaItem("PriceTo", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem VideoLink = new SchemaItem("VideoLink", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Content1 = new SchemaItem("Content1", DbType.String, SchemaItemJustify.None, 1073741823, true, false, false, false);
		public static SchemaItem Content2 = new SchemaItem("Content2", DbType.String, SchemaItemJustify.None, 1073741823, true, false, false, false);
		public static SchemaItem Content3 = new SchemaItem("Content3", DbType.String, SchemaItemJustify.None, 1073741823, true, false, false, false);
		public static SchemaItem CountryID = new SchemaItem("CountryID", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem ImageDetail1 = new SchemaItem("ImageDetail1", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem ImageDetail2 = new SchemaItem("ImageDetail2", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem ImageDetail3 = new SchemaItem("ImageDetail3", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem ImageDetail4 = new SchemaItem("ImageDetail4", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem ImageDetail5 = new SchemaItem("ImageDetail5", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Priority = new SchemaItem("Priority", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem CruiseRegion = new SchemaItem("CruiseRegion", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem Type = new SchemaItem("Type", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem Content1_2day = new SchemaItem("Content1_2day", DbType.String, SchemaItemJustify.None, 1073741823, true, false, false, false);
		public static SchemaItem Content2_2day = new SchemaItem("Content2_2day", DbType.String, SchemaItemJustify.None, 1073741823, true, false, false, false);
		public static SchemaItem Content3_2day = new SchemaItem("Content3_2day", DbType.String, SchemaItemJustify.None, 1073741823, true, false, false, false);
		public static SchemaItem Content1_3day = new SchemaItem("Content1_3day", DbType.String, SchemaItemJustify.None, 1073741823, true, false, false, false);
		public static SchemaItem Content2_3day = new SchemaItem("Content2_3day", DbType.String, SchemaItemJustify.None, 1073741823, true, false, false, false);
		public static SchemaItem Content3_3day = new SchemaItem("Content3_3day", DbType.String, SchemaItemJustify.None, 1073741823, true, false, false, false);

		public override ArrayList SchemaEntries
		{
			get
			{
				if (_entries == null )
				{
					_entries = new ArrayList();
					_entries.Add(CruiseSchema.CruiseID);
					_entries.Add(CruiseSchema.Title1);
					_entries.Add(CruiseSchema.Title2);
					_entries.Add(CruiseSchema.Title3);
					_entries.Add(CruiseSchema.InitContent1);
					_entries.Add(CruiseSchema.InitContent2);
					_entries.Add(CruiseSchema.InitContent3);
					_entries.Add(CruiseSchema.CruiseDurationID);
					_entries.Add(CruiseSchema.Images);
					_entries.Add(CruiseSchema.Status);
					_entries.Add(CruiseSchema.PriceFrom);
					_entries.Add(CruiseSchema.PriceTo);
					_entries.Add(CruiseSchema.VideoLink);
					_entries.Add(CruiseSchema.Content1);
					_entries.Add(CruiseSchema.Content2);
					_entries.Add(CruiseSchema.Content3);
					_entries.Add(CruiseSchema.CountryID);
					_entries.Add(CruiseSchema.ImageDetail1);
					_entries.Add(CruiseSchema.ImageDetail2);
					_entries.Add(CruiseSchema.ImageDetail3);
					_entries.Add(CruiseSchema.ImageDetail4);
					_entries.Add(CruiseSchema.ImageDetail5);
					_entries.Add(CruiseSchema.Priority);
					_entries.Add(CruiseSchema.CruiseRegion);
					_entries.Add(CruiseSchema.Type);
					_entries.Add(CruiseSchema.Content1_2day);
					_entries.Add(CruiseSchema.Content2_2day);
					_entries.Add(CruiseSchema.Content3_2day);
					_entries.Add(CruiseSchema.Content1_3day);
					_entries.Add(CruiseSchema.Content2_3day);
					_entries.Add(CruiseSchema.Content3_3day);
				}
				return _entries;
			}
		}
		
		public static bool HasAutoKey 
		{
			get { return true;	}
		}

		public static bool HasRowID 
		{
			get { return false;	}
		}
	}
	#endregion

	public abstract class _Cruise : EasyObject
	{

		public _Cruise()
		{
			CruiseSchema _schema = new CruiseSchema();
			this.SchemaEntries = _schema.SchemaEntries;
			this.SchemaGlobal = "dbo";
		}
		
		public override void FlushData() 	 
		{ 	 
			this._whereClause = null; 	 
			this._aggregateClause = null; 	 
			base.FlushData(); 	 
		}
			   
		/// <summary>
		/// Loads the business object with info from the database, based on the requested primary key.
		/// </summary>
		/// <param name="CruiseID"></param>
		/// <returns>A Boolean indicating success or failure of the query</returns>
		public bool LoadByPrimaryKey(int CruiseID)
		{
			switch(this.DefaultCommandType)
			{
				case CommandType.StoredProcedure:
					ListDictionary parameters = new ListDictionary();

					// Add in parameters
					parameters.Add(CruiseSchema.CruiseID.FieldName, CruiseID);

					return base.LoadFromSql(this.SchemaStoredProcedureWithSeparator + "sp_GetCruise", parameters, CommandType.StoredProcedure);

				case CommandType.Text:
					this.Query.ClearAll();
					this.Where.WhereClauseReset();
					this.Where.CruiseID.Value = CruiseID;
					return this.Query.Load();

				default:
					throw new ArgumentException("Invalid CommandType", "commandType");
			}
		}
	
		/// <summary>
		/// Loads all records from the table.
		/// </summary>
		/// <returns>A Boolean indicating success or failure of the query</returns>
		public bool LoadAll()
		{
			switch(this.DefaultCommandType)
			{
				case CommandType.StoredProcedure:
					return base.LoadFromSql(this.SchemaStoredProcedureWithSeparator + "sp_GetAllCruise", null, CommandType.StoredProcedure);

				case CommandType.Text:
					this.Query.ClearAll();
					this.Where.WhereClauseReset();
					return this.Query.Load();

				default:
					throw new ArgumentException("Invalid CommandType", "commandType");
			}
		}

		/// <summary>
		/// Adds a new record to the internal table.
		/// </summary>
		public override void AddNew()
		{
			base.AddNew();
			this.ApplyDefaults();
		}

		/// <summary>
		/// Apply any default values to columns
		/// </summary>
		protected override void ApplyDefaults()
		{
		}

		protected override DbCommand GetInsertCommand(CommandType commandType)
		{	
			DbCommand dbCommand;

			// Create the Database object, using the default database service. The
			// default database service is determined through configuration.
			Database db = GetDatabase();

			switch(commandType)
			{
				case CommandType.StoredProcedure:
					string sqlCommand = this.SchemaStoredProcedureWithSeparator + "sp_AddCruise";
					dbCommand = db.GetStoredProcCommand(sqlCommand);

					db.AddParameter(dbCommand, "CruiseID", DbType.Int32, 0, ParameterDirection.Output, true, 0, 0, "CruiseID", DataRowVersion.Default, Convert.DBNull);
					CreateParameters(db, dbCommand);
					
					return dbCommand;

				case CommandType.Text:
					this.Query.ClearAll();
					this.Where.WhereClauseReset();
					foreach(SchemaItem item in this.SchemaEntries)
					{
						if (!item.IsComputed)
						{
							if ((item.IsAutoKey && this.IdentityInsert) || !item.IsAutoKey)
							{
								this.Query.AddInsertColumn(item);
							}
						}
					}
					dbCommand = this.Query.GetInsertCommandWrapper();

					dbCommand.Parameters.Clear();
					if (this.IdentityInsert)
					{
						db.AddInParameter(dbCommand, "CruiseID", DbType.Int32, "CruiseID", DataRowVersion.Default);
					}
					else
					{
						db.AddParameter(dbCommand, "CruiseID", DbType.Int32, 0, ParameterDirection.Output, true, 0, 0, "CruiseID", DataRowVersion.Default, Convert.DBNull);
					}
					CreateParameters(db, dbCommand);

					return dbCommand;

				default:
					throw new ArgumentException("Invalid CommandType", "commandType");
			}
		}

		protected override DbCommand GetUpdateCommand(CommandType commandType)
		{
            DbCommand dbCommand;

			// Create the Database object, using the default database service. The
			// default database service is determined through configuration.
			Database db = GetDatabase();

			switch(commandType)
			{
				case CommandType.StoredProcedure:
					string sqlCommand = this.SchemaStoredProcedureWithSeparator + "sp_UpdateCruise";
					dbCommand = db.GetStoredProcCommand(sqlCommand);

					db.AddInParameter(dbCommand, "CruiseID", DbType.Int32, "CruiseID", DataRowVersion.Current);
					CreateParameters(db, dbCommand);
					
					return dbCommand;

				case CommandType.Text:
					this.Query.ClearAll();
					foreach(SchemaItem item in this.SchemaEntries)
					{
						if (!(item.IsAutoKey || item.IsComputed))
						{
							this.Query.AddUpdateColumn(item);
						}
					}

					this.Where.WhereClauseReset();
					this.Where.CruiseID.Operator = WhereParameter.Operand.Equal;
					dbCommand = this.Query.GetUpdateCommandWrapper();

					dbCommand.Parameters.Clear();
					CreateParameters(db, dbCommand);
					db.AddInParameter(dbCommand, "CruiseID", DbType.Int32, "CruiseID", DataRowVersion.Current);
					
					return dbCommand;

				default:
					throw new ArgumentException("Invalid CommandType", "commandType");
			}
		}

		protected override DbCommand GetDeleteCommand(CommandType commandType)
		{
            DbCommand dbCommand;

			// Create the Database object, using the default database service. The
			// default database service is determined through configuration.
			Database db = GetDatabase();

			switch(commandType)
			{
				case CommandType.StoredProcedure:
					string sqlCommand = this.SchemaStoredProcedureWithSeparator + "sp_DeleteCruise";
					dbCommand = db.GetStoredProcCommand(sqlCommand);
					db.AddInParameter(dbCommand, "CruiseID", DbType.Int32, "CruiseID", DataRowVersion.Current);
					
					return dbCommand;

				case CommandType.Text:
					this.Query.ClearAll();
					this.Where.WhereClauseReset();
					this.Where.CruiseID.Operator = WhereParameter.Operand.Equal;
					dbCommand = this.Query.GetDeleteCommandWrapper();

					dbCommand.Parameters.Clear();
					db.AddInParameter(dbCommand, "CruiseID", DbType.Int32, "CruiseID", DataRowVersion.Current);
					
					return dbCommand;

				default:
					throw new ArgumentException("Invalid CommandType", "commandType");
			}
		}

		private void CreateParameters(Database db, DbCommand dbCommand)
		{
			db.AddInParameter(dbCommand, "Title1", DbType.String, "Title1", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Title2", DbType.String, "Title2", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Title3", DbType.String, "Title3", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "InitContent1", DbType.String, "InitContent1", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "InitContent2", DbType.String, "InitContent2", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "InitContent3", DbType.String, "InitContent3", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "CruiseDurationID", DbType.Int32, "CruiseDurationID", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Images", DbType.String, "Images", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Status", DbType.Int32, "Status", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "PriceFrom", DbType.Int32, "PriceFrom", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "PriceTo", DbType.Int32, "PriceTo", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "VideoLink", DbType.String, "VideoLink", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Content1", DbType.String, "Content1", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Content2", DbType.String, "Content2", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Content3", DbType.String, "Content3", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "CountryID", DbType.Int32, "CountryID", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "ImageDetail1", DbType.String, "ImageDetail1", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "ImageDetail2", DbType.String, "ImageDetail2", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "ImageDetail3", DbType.String, "ImageDetail3", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "ImageDetail4", DbType.String, "ImageDetail4", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "ImageDetail5", DbType.String, "ImageDetail5", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Priority", DbType.Int32, "Priority", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "CruiseRegion", DbType.Int32, "CruiseRegion", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Type", DbType.Int32, "Type", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Content1_2day", DbType.String, "Content1_2day", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Content2_2day", DbType.String, "Content2_2day", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Content3_2day", DbType.String, "Content3_2day", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Content1_3day", DbType.String, "Content1_3day", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Content2_3day", DbType.String, "Content2_3day", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Content3_3day", DbType.String, "Content3_3day", DataRowVersion.Current);
		}
		
		#region Properties
		public virtual int CruiseID
		{
			get
			{
				return this.GetInteger(CruiseSchema.CruiseID.FieldName);
	    	}
			set
			{
				this.SetInteger(CruiseSchema.CruiseID.FieldName, value);
			}
		}
		public virtual string Title1
		{
			get
			{
				return this.GetString(CruiseSchema.Title1.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.Title1.FieldName, value);
			}
		}
		public virtual string Title2
		{
			get
			{
				return this.GetString(CruiseSchema.Title2.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.Title2.FieldName, value);
			}
		}
		public virtual string Title3
		{
			get
			{
				return this.GetString(CruiseSchema.Title3.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.Title3.FieldName, value);
			}
		}
		public virtual string InitContent1
		{
			get
			{
				return this.GetString(CruiseSchema.InitContent1.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.InitContent1.FieldName, value);
			}
		}
		public virtual string InitContent2
		{
			get
			{
				return this.GetString(CruiseSchema.InitContent2.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.InitContent2.FieldName, value);
			}
		}
		public virtual string InitContent3
		{
			get
			{
				return this.GetString(CruiseSchema.InitContent3.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.InitContent3.FieldName, value);
			}
		}
		public virtual int CruiseDurationID
		{
			get
			{
				return this.GetInteger(CruiseSchema.CruiseDurationID.FieldName);
	    	}
			set
			{
				this.SetInteger(CruiseSchema.CruiseDurationID.FieldName, value);
			}
		}
		public virtual string Images
		{
			get
			{
				return this.GetString(CruiseSchema.Images.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.Images.FieldName, value);
			}
		}
		public virtual int Status
		{
			get
			{
				return this.GetInteger(CruiseSchema.Status.FieldName);
	    	}
			set
			{
				this.SetInteger(CruiseSchema.Status.FieldName, value);
			}
		}
		public virtual int PriceFrom
		{
			get
			{
				return this.GetInteger(CruiseSchema.PriceFrom.FieldName);
	    	}
			set
			{
				this.SetInteger(CruiseSchema.PriceFrom.FieldName, value);
			}
		}
		public virtual int PriceTo
		{
			get
			{
				return this.GetInteger(CruiseSchema.PriceTo.FieldName);
	    	}
			set
			{
				this.SetInteger(CruiseSchema.PriceTo.FieldName, value);
			}
		}
		public virtual string VideoLink
		{
			get
			{
				return this.GetString(CruiseSchema.VideoLink.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.VideoLink.FieldName, value);
			}
		}
		public virtual string Content1
		{
			get
			{
				return this.GetString(CruiseSchema.Content1.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.Content1.FieldName, value);
			}
		}
		public virtual string Content2
		{
			get
			{
				return this.GetString(CruiseSchema.Content2.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.Content2.FieldName, value);
			}
		}
		public virtual string Content3
		{
			get
			{
				return this.GetString(CruiseSchema.Content3.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.Content3.FieldName, value);
			}
		}
		public virtual int CountryID
		{
			get
			{
				return this.GetInteger(CruiseSchema.CountryID.FieldName);
	    	}
			set
			{
				this.SetInteger(CruiseSchema.CountryID.FieldName, value);
			}
		}
		public virtual string ImageDetail1
		{
			get
			{
				return this.GetString(CruiseSchema.ImageDetail1.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.ImageDetail1.FieldName, value);
			}
		}
		public virtual string ImageDetail2
		{
			get
			{
				return this.GetString(CruiseSchema.ImageDetail2.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.ImageDetail2.FieldName, value);
			}
		}
		public virtual string ImageDetail3
		{
			get
			{
				return this.GetString(CruiseSchema.ImageDetail3.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.ImageDetail3.FieldName, value);
			}
		}
		public virtual string ImageDetail4
		{
			get
			{
				return this.GetString(CruiseSchema.ImageDetail4.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.ImageDetail4.FieldName, value);
			}
		}
		public virtual string ImageDetail5
		{
			get
			{
				return this.GetString(CruiseSchema.ImageDetail5.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.ImageDetail5.FieldName, value);
			}
		}
		public virtual int Priority
		{
			get
			{
				return this.GetInteger(CruiseSchema.Priority.FieldName);
	    	}
			set
			{
				this.SetInteger(CruiseSchema.Priority.FieldName, value);
			}
		}
		public virtual int CruiseRegion
		{
			get
			{
				return this.GetInteger(CruiseSchema.CruiseRegion.FieldName);
	    	}
			set
			{
				this.SetInteger(CruiseSchema.CruiseRegion.FieldName, value);
			}
		}
		public virtual int Type
		{
			get
			{
				return this.GetInteger(CruiseSchema.Type.FieldName);
	    	}
			set
			{
				this.SetInteger(CruiseSchema.Type.FieldName, value);
			}
		}
		public virtual string Content1_2day
		{
			get
			{
				return this.GetString(CruiseSchema.Content1_2day.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.Content1_2day.FieldName, value);
			}
		}
		public virtual string Content2_2day
		{
			get
			{
				return this.GetString(CruiseSchema.Content2_2day.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.Content2_2day.FieldName, value);
			}
		}
		public virtual string Content3_2day
		{
			get
			{
				return this.GetString(CruiseSchema.Content3_2day.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.Content3_2day.FieldName, value);
			}
		}
		public virtual string Content1_3day
		{
			get
			{
				return this.GetString(CruiseSchema.Content1_3day.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.Content1_3day.FieldName, value);
			}
		}
		public virtual string Content2_3day
		{
			get
			{
				return this.GetString(CruiseSchema.Content2_3day.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.Content2_3day.FieldName, value);
			}
		}
		public virtual string Content3_3day
		{
			get
			{
				return this.GetString(CruiseSchema.Content3_3day.FieldName);
	    	}
			set
			{
				this.SetString(CruiseSchema.Content3_3day.FieldName, value);
			}
		}

		public override string TableName
		{
			get { return "Cruise"; }
		}
		
		#endregion		
		
		#region String Properties
		public virtual string s_CruiseID
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.CruiseID.FieldName) ? string.Empty : base.GetIntegerAsString(CruiseSchema.CruiseID.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.CruiseID.FieldName);
			    else
			        this.CruiseID = base.SetIntegerAsString(CruiseSchema.CruiseID.FieldName, value);
			}
		}
		public virtual string s_Title1
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.Title1.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.Title1.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.Title1.FieldName);
			    else
			        this.Title1 = base.SetStringAsString(CruiseSchema.Title1.FieldName, value);
			}
		}
		public virtual string s_Title2
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.Title2.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.Title2.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.Title2.FieldName);
			    else
			        this.Title2 = base.SetStringAsString(CruiseSchema.Title2.FieldName, value);
			}
		}
		public virtual string s_Title3
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.Title3.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.Title3.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.Title3.FieldName);
			    else
			        this.Title3 = base.SetStringAsString(CruiseSchema.Title3.FieldName, value);
			}
		}
		public virtual string s_InitContent1
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.InitContent1.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.InitContent1.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.InitContent1.FieldName);
			    else
			        this.InitContent1 = base.SetStringAsString(CruiseSchema.InitContent1.FieldName, value);
			}
		}
		public virtual string s_InitContent2
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.InitContent2.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.InitContent2.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.InitContent2.FieldName);
			    else
			        this.InitContent2 = base.SetStringAsString(CruiseSchema.InitContent2.FieldName, value);
			}
		}
		public virtual string s_InitContent3
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.InitContent3.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.InitContent3.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.InitContent3.FieldName);
			    else
			        this.InitContent3 = base.SetStringAsString(CruiseSchema.InitContent3.FieldName, value);
			}
		}
		public virtual string s_CruiseDurationID
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.CruiseDurationID.FieldName) ? string.Empty : base.GetIntegerAsString(CruiseSchema.CruiseDurationID.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.CruiseDurationID.FieldName);
			    else
			        this.CruiseDurationID = base.SetIntegerAsString(CruiseSchema.CruiseDurationID.FieldName, value);
			}
		}
		public virtual string s_Images
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.Images.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.Images.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.Images.FieldName);
			    else
			        this.Images = base.SetStringAsString(CruiseSchema.Images.FieldName, value);
			}
		}
		public virtual string s_Status
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.Status.FieldName) ? string.Empty : base.GetIntegerAsString(CruiseSchema.Status.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.Status.FieldName);
			    else
			        this.Status = base.SetIntegerAsString(CruiseSchema.Status.FieldName, value);
			}
		}
		public virtual string s_PriceFrom
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.PriceFrom.FieldName) ? string.Empty : base.GetIntegerAsString(CruiseSchema.PriceFrom.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.PriceFrom.FieldName);
			    else
			        this.PriceFrom = base.SetIntegerAsString(CruiseSchema.PriceFrom.FieldName, value);
			}
		}
		public virtual string s_PriceTo
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.PriceTo.FieldName) ? string.Empty : base.GetIntegerAsString(CruiseSchema.PriceTo.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.PriceTo.FieldName);
			    else
			        this.PriceTo = base.SetIntegerAsString(CruiseSchema.PriceTo.FieldName, value);
			}
		}
		public virtual string s_VideoLink
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.VideoLink.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.VideoLink.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.VideoLink.FieldName);
			    else
			        this.VideoLink = base.SetStringAsString(CruiseSchema.VideoLink.FieldName, value);
			}
		}
		public virtual string s_Content1
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.Content1.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.Content1.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.Content1.FieldName);
			    else
			        this.Content1 = base.SetStringAsString(CruiseSchema.Content1.FieldName, value);
			}
		}
		public virtual string s_Content2
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.Content2.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.Content2.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.Content2.FieldName);
			    else
			        this.Content2 = base.SetStringAsString(CruiseSchema.Content2.FieldName, value);
			}
		}
		public virtual string s_Content3
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.Content3.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.Content3.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.Content3.FieldName);
			    else
			        this.Content3 = base.SetStringAsString(CruiseSchema.Content3.FieldName, value);
			}
		}
		public virtual string s_CountryID
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.CountryID.FieldName) ? string.Empty : base.GetIntegerAsString(CruiseSchema.CountryID.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.CountryID.FieldName);
			    else
			        this.CountryID = base.SetIntegerAsString(CruiseSchema.CountryID.FieldName, value);
			}
		}
		public virtual string s_ImageDetail1
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.ImageDetail1.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.ImageDetail1.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.ImageDetail1.FieldName);
			    else
			        this.ImageDetail1 = base.SetStringAsString(CruiseSchema.ImageDetail1.FieldName, value);
			}
		}
		public virtual string s_ImageDetail2
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.ImageDetail2.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.ImageDetail2.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.ImageDetail2.FieldName);
			    else
			        this.ImageDetail2 = base.SetStringAsString(CruiseSchema.ImageDetail2.FieldName, value);
			}
		}
		public virtual string s_ImageDetail3
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.ImageDetail3.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.ImageDetail3.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.ImageDetail3.FieldName);
			    else
			        this.ImageDetail3 = base.SetStringAsString(CruiseSchema.ImageDetail3.FieldName, value);
			}
		}
		public virtual string s_ImageDetail4
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.ImageDetail4.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.ImageDetail4.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.ImageDetail4.FieldName);
			    else
			        this.ImageDetail4 = base.SetStringAsString(CruiseSchema.ImageDetail4.FieldName, value);
			}
		}
		public virtual string s_ImageDetail5
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.ImageDetail5.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.ImageDetail5.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.ImageDetail5.FieldName);
			    else
			        this.ImageDetail5 = base.SetStringAsString(CruiseSchema.ImageDetail5.FieldName, value);
			}
		}
		public virtual string s_Priority
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.Priority.FieldName) ? string.Empty : base.GetIntegerAsString(CruiseSchema.Priority.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.Priority.FieldName);
			    else
			        this.Priority = base.SetIntegerAsString(CruiseSchema.Priority.FieldName, value);
			}
		}
		public virtual string s_CruiseRegion
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.CruiseRegion.FieldName) ? string.Empty : base.GetIntegerAsString(CruiseSchema.CruiseRegion.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.CruiseRegion.FieldName);
			    else
			        this.CruiseRegion = base.SetIntegerAsString(CruiseSchema.CruiseRegion.FieldName, value);
			}
		}
		public virtual string s_Type
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.Type.FieldName) ? string.Empty : base.GetIntegerAsString(CruiseSchema.Type.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.Type.FieldName);
			    else
			        this.Type = base.SetIntegerAsString(CruiseSchema.Type.FieldName, value);
			}
		}
		public virtual string s_Content1_2day
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.Content1_2day.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.Content1_2day.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.Content1_2day.FieldName);
			    else
			        this.Content1_2day = base.SetStringAsString(CruiseSchema.Content1_2day.FieldName, value);
			}
		}
		public virtual string s_Content2_2day
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.Content2_2day.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.Content2_2day.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.Content2_2day.FieldName);
			    else
			        this.Content2_2day = base.SetStringAsString(CruiseSchema.Content2_2day.FieldName, value);
			}
		}
		public virtual string s_Content3_2day
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.Content3_2day.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.Content3_2day.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.Content3_2day.FieldName);
			    else
			        this.Content3_2day = base.SetStringAsString(CruiseSchema.Content3_2day.FieldName, value);
			}
		}
		public virtual string s_Content1_3day
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.Content1_3day.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.Content1_3day.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.Content1_3day.FieldName);
			    else
			        this.Content1_3day = base.SetStringAsString(CruiseSchema.Content1_3day.FieldName, value);
			}
		}
		public virtual string s_Content2_3day
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.Content2_3day.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.Content2_3day.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.Content2_3day.FieldName);
			    else
			        this.Content2_3day = base.SetStringAsString(CruiseSchema.Content2_3day.FieldName, value);
			}
		}
		public virtual string s_Content3_3day
		{
			get
			{
			    return this.IsColumnNull(CruiseSchema.Content3_3day.FieldName) ? string.Empty : base.GetStringAsString(CruiseSchema.Content3_3day.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(CruiseSchema.Content3_3day.FieldName);
			    else
			        this.Content3_3day = base.SetStringAsString(CruiseSchema.Content3_3day.FieldName, value);
			}
		}
		#endregion		
	
		#region Where Clause
		public class WhereClause
		{
			public WhereClause(EasyObject entity)
			{
				this._entity = entity;
			}
			
			public TearOffWhereParameter TearOff
			{
				get
				{
					if(_tearOff == null)
					{
						_tearOff = new TearOffWhereParameter(this);
					}

					return _tearOff;
				}
			}

			#region TearOff's
			public class TearOffWhereParameter
			{
				public TearOffWhereParameter(WhereClause clause)
				{
					this._clause = clause;
				}
				
				
				public WhereParameter CruiseID
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.CruiseID);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Title1
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.Title1);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Title2
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.Title2);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Title3
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.Title3);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter InitContent1
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.InitContent1);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter InitContent2
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.InitContent2);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter InitContent3
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.InitContent3);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter CruiseDurationID
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.CruiseDurationID);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Images
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.Images);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Status
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.Status);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter PriceFrom
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.PriceFrom);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter PriceTo
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.PriceTo);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter VideoLink
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.VideoLink);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Content1
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.Content1);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Content2
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.Content2);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Content3
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.Content3);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter CountryID
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.CountryID);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter ImageDetail1
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.ImageDetail1);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter ImageDetail2
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.ImageDetail2);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter ImageDetail3
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.ImageDetail3);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter ImageDetail4
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.ImageDetail4);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter ImageDetail5
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.ImageDetail5);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Priority
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.Priority);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter CruiseRegion
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.CruiseRegion);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Type
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.Type);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Content1_2day
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.Content1_2day);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Content2_2day
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.Content2_2day);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Content3_2day
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.Content3_2day);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Content1_3day
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.Content1_3day);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Content2_3day
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.Content2_3day);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Content3_3day
				{
					get
					{
							WhereParameter wp = new WhereParameter(CruiseSchema.Content3_3day);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}


				private WhereClause _clause;
			}
			#endregion
		
			public WhereParameter CruiseID
		    {
				get
		        {
					if(_CruiseID_W == null)
	        	    {
						_CruiseID_W = TearOff.CruiseID;
					}
					return _CruiseID_W;
				}
			}

			public WhereParameter Title1
		    {
				get
		        {
					if(_Title1_W == null)
	        	    {
						_Title1_W = TearOff.Title1;
					}
					return _Title1_W;
				}
			}

			public WhereParameter Title2
		    {
				get
		        {
					if(_Title2_W == null)
	        	    {
						_Title2_W = TearOff.Title2;
					}
					return _Title2_W;
				}
			}

			public WhereParameter Title3
		    {
				get
		        {
					if(_Title3_W == null)
	        	    {
						_Title3_W = TearOff.Title3;
					}
					return _Title3_W;
				}
			}

			public WhereParameter InitContent1
		    {
				get
		        {
					if(_InitContent1_W == null)
	        	    {
						_InitContent1_W = TearOff.InitContent1;
					}
					return _InitContent1_W;
				}
			}

			public WhereParameter InitContent2
		    {
				get
		        {
					if(_InitContent2_W == null)
	        	    {
						_InitContent2_W = TearOff.InitContent2;
					}
					return _InitContent2_W;
				}
			}

			public WhereParameter InitContent3
		    {
				get
		        {
					if(_InitContent3_W == null)
	        	    {
						_InitContent3_W = TearOff.InitContent3;
					}
					return _InitContent3_W;
				}
			}

			public WhereParameter CruiseDurationID
		    {
				get
		        {
					if(_CruiseDurationID_W == null)
	        	    {
						_CruiseDurationID_W = TearOff.CruiseDurationID;
					}
					return _CruiseDurationID_W;
				}
			}

			public WhereParameter Images
		    {
				get
		        {
					if(_Images_W == null)
	        	    {
						_Images_W = TearOff.Images;
					}
					return _Images_W;
				}
			}

			public WhereParameter Status
		    {
				get
		        {
					if(_Status_W == null)
	        	    {
						_Status_W = TearOff.Status;
					}
					return _Status_W;
				}
			}

			public WhereParameter PriceFrom
		    {
				get
		        {
					if(_PriceFrom_W == null)
	        	    {
						_PriceFrom_W = TearOff.PriceFrom;
					}
					return _PriceFrom_W;
				}
			}

			public WhereParameter PriceTo
		    {
				get
		        {
					if(_PriceTo_W == null)
	        	    {
						_PriceTo_W = TearOff.PriceTo;
					}
					return _PriceTo_W;
				}
			}

			public WhereParameter VideoLink
		    {
				get
		        {
					if(_VideoLink_W == null)
	        	    {
						_VideoLink_W = TearOff.VideoLink;
					}
					return _VideoLink_W;
				}
			}

			public WhereParameter Content1
		    {
				get
		        {
					if(_Content1_W == null)
	        	    {
						_Content1_W = TearOff.Content1;
					}
					return _Content1_W;
				}
			}

			public WhereParameter Content2
		    {
				get
		        {
					if(_Content2_W == null)
	        	    {
						_Content2_W = TearOff.Content2;
					}
					return _Content2_W;
				}
			}

			public WhereParameter Content3
		    {
				get
		        {
					if(_Content3_W == null)
	        	    {
						_Content3_W = TearOff.Content3;
					}
					return _Content3_W;
				}
			}

			public WhereParameter CountryID
		    {
				get
		        {
					if(_CountryID_W == null)
	        	    {
						_CountryID_W = TearOff.CountryID;
					}
					return _CountryID_W;
				}
			}

			public WhereParameter ImageDetail1
		    {
				get
		        {
					if(_ImageDetail1_W == null)
	        	    {
						_ImageDetail1_W = TearOff.ImageDetail1;
					}
					return _ImageDetail1_W;
				}
			}

			public WhereParameter ImageDetail2
		    {
				get
		        {
					if(_ImageDetail2_W == null)
	        	    {
						_ImageDetail2_W = TearOff.ImageDetail2;
					}
					return _ImageDetail2_W;
				}
			}

			public WhereParameter ImageDetail3
		    {
				get
		        {
					if(_ImageDetail3_W == null)
	        	    {
						_ImageDetail3_W = TearOff.ImageDetail3;
					}
					return _ImageDetail3_W;
				}
			}

			public WhereParameter ImageDetail4
		    {
				get
		        {
					if(_ImageDetail4_W == null)
	        	    {
						_ImageDetail4_W = TearOff.ImageDetail4;
					}
					return _ImageDetail4_W;
				}
			}

			public WhereParameter ImageDetail5
		    {
				get
		        {
					if(_ImageDetail5_W == null)
	        	    {
						_ImageDetail5_W = TearOff.ImageDetail5;
					}
					return _ImageDetail5_W;
				}
			}

			public WhereParameter Priority
		    {
				get
		        {
					if(_Priority_W == null)
	        	    {
						_Priority_W = TearOff.Priority;
					}
					return _Priority_W;
				}
			}

			public WhereParameter CruiseRegion
		    {
				get
		        {
					if(_CruiseRegion_W == null)
	        	    {
						_CruiseRegion_W = TearOff.CruiseRegion;
					}
					return _CruiseRegion_W;
				}
			}

			public WhereParameter Type
		    {
				get
		        {
					if(_Type_W == null)
	        	    {
						_Type_W = TearOff.Type;
					}
					return _Type_W;
				}
			}

			public WhereParameter Content1_2day
		    {
				get
		        {
					if(_Content1_2day_W == null)
	        	    {
						_Content1_2day_W = TearOff.Content1_2day;
					}
					return _Content1_2day_W;
				}
			}

			public WhereParameter Content2_2day
		    {
				get
		        {
					if(_Content2_2day_W == null)
	        	    {
						_Content2_2day_W = TearOff.Content2_2day;
					}
					return _Content2_2day_W;
				}
			}

			public WhereParameter Content3_2day
		    {
				get
		        {
					if(_Content3_2day_W == null)
	        	    {
						_Content3_2day_W = TearOff.Content3_2day;
					}
					return _Content3_2day_W;
				}
			}

			public WhereParameter Content1_3day
		    {
				get
		        {
					if(_Content1_3day_W == null)
	        	    {
						_Content1_3day_W = TearOff.Content1_3day;
					}
					return _Content1_3day_W;
				}
			}

			public WhereParameter Content2_3day
		    {
				get
		        {
					if(_Content2_3day_W == null)
	        	    {
						_Content2_3day_W = TearOff.Content2_3day;
					}
					return _Content2_3day_W;
				}
			}

			public WhereParameter Content3_3day
		    {
				get
		        {
					if(_Content3_3day_W == null)
	        	    {
						_Content3_3day_W = TearOff.Content3_3day;
					}
					return _Content3_3day_W;
				}
			}

			private WhereParameter _CruiseID_W = null;
			private WhereParameter _Title1_W = null;
			private WhereParameter _Title2_W = null;
			private WhereParameter _Title3_W = null;
			private WhereParameter _InitContent1_W = null;
			private WhereParameter _InitContent2_W = null;
			private WhereParameter _InitContent3_W = null;
			private WhereParameter _CruiseDurationID_W = null;
			private WhereParameter _Images_W = null;
			private WhereParameter _Status_W = null;
			private WhereParameter _PriceFrom_W = null;
			private WhereParameter _PriceTo_W = null;
			private WhereParameter _VideoLink_W = null;
			private WhereParameter _Content1_W = null;
			private WhereParameter _Content2_W = null;
			private WhereParameter _Content3_W = null;
			private WhereParameter _CountryID_W = null;
			private WhereParameter _ImageDetail1_W = null;
			private WhereParameter _ImageDetail2_W = null;
			private WhereParameter _ImageDetail3_W = null;
			private WhereParameter _ImageDetail4_W = null;
			private WhereParameter _ImageDetail5_W = null;
			private WhereParameter _Priority_W = null;
			private WhereParameter _CruiseRegion_W = null;
			private WhereParameter _Type_W = null;
			private WhereParameter _Content1_2day_W = null;
			private WhereParameter _Content2_2day_W = null;
			private WhereParameter _Content3_2day_W = null;
			private WhereParameter _Content1_3day_W = null;
			private WhereParameter _Content2_3day_W = null;
			private WhereParameter _Content3_3day_W = null;

			public void WhereClauseReset()
			{
				_CruiseID_W = null;
				_Title1_W = null;
				_Title2_W = null;
				_Title3_W = null;
				_InitContent1_W = null;
				_InitContent2_W = null;
				_InitContent3_W = null;
				_CruiseDurationID_W = null;
				_Images_W = null;
				_Status_W = null;
				_PriceFrom_W = null;
				_PriceTo_W = null;
				_VideoLink_W = null;
				_Content1_W = null;
				_Content2_W = null;
				_Content3_W = null;
				_CountryID_W = null;
				_ImageDetail1_W = null;
				_ImageDetail2_W = null;
				_ImageDetail3_W = null;
				_ImageDetail4_W = null;
				_ImageDetail5_W = null;
				_Priority_W = null;
				_CruiseRegion_W = null;
				_Type_W = null;
				_Content1_2day_W = null;
				_Content2_2day_W = null;
				_Content3_2day_W = null;
				_Content1_3day_W = null;
				_Content2_3day_W = null;
				_Content3_3day_W = null;

				this._entity.Query.FlushWhereParameters();

			}
	
			private EasyObject _entity;
			private TearOffWhereParameter _tearOff;
			
		}
	
		public WhereClause Where
		{
			get
			{
				if(_whereClause == null)
				{
					_whereClause = new WhereClause(this);
				}
		
				return _whereClause;
			}
		}
		
		private WhereClause _whereClause = null;	
		#endregion
		
		#region Aggregate Clause
		public class AggregateClause
		{
			public AggregateClause(EasyObject entity)
			{
				this._entity = entity;
			}
			
			public TearOffAggregateParameter TearOff
			{
				get
				{
					if(_tearOff == null)
					{
						_tearOff = new TearOffAggregateParameter(this);
					}

					return _tearOff;
				}
			}

			#region TearOff's
			public class TearOffAggregateParameter
			{
				public TearOffAggregateParameter(AggregateClause clause)
				{
					this._clause = clause;
				}
				
				
				public AggregateParameter CruiseID
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.CruiseID);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Title1
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.Title1);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Title2
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.Title2);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Title3
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.Title3);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter InitContent1
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.InitContent1);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter InitContent2
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.InitContent2);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter InitContent3
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.InitContent3);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter CruiseDurationID
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.CruiseDurationID);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Images
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.Images);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Status
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.Status);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter PriceFrom
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.PriceFrom);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter PriceTo
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.PriceTo);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter VideoLink
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.VideoLink);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Content1
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.Content1);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Content2
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.Content2);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Content3
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.Content3);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter CountryID
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.CountryID);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter ImageDetail1
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.ImageDetail1);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter ImageDetail2
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.ImageDetail2);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter ImageDetail3
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.ImageDetail3);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter ImageDetail4
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.ImageDetail4);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter ImageDetail5
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.ImageDetail5);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Priority
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.Priority);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter CruiseRegion
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.CruiseRegion);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Type
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.Type);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Content1_2day
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.Content1_2day);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Content2_2day
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.Content2_2day);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Content3_2day
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.Content3_2day);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Content1_3day
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.Content1_3day);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Content2_3day
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.Content2_3day);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Content3_3day
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(CruiseSchema.Content3_3day);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}


				private AggregateClause _clause;
			}
			#endregion
		
			public AggregateParameter CruiseID
		    {
				get
		        {
					if(_CruiseID_W == null)
	        	    {
						_CruiseID_W = TearOff.CruiseID;
					}
					return _CruiseID_W;
				}
			}

			public AggregateParameter Title1
		    {
				get
		        {
					if(_Title1_W == null)
	        	    {
						_Title1_W = TearOff.Title1;
					}
					return _Title1_W;
				}
			}

			public AggregateParameter Title2
		    {
				get
		        {
					if(_Title2_W == null)
	        	    {
						_Title2_W = TearOff.Title2;
					}
					return _Title2_W;
				}
			}

			public AggregateParameter Title3
		    {
				get
		        {
					if(_Title3_W == null)
	        	    {
						_Title3_W = TearOff.Title3;
					}
					return _Title3_W;
				}
			}

			public AggregateParameter InitContent1
		    {
				get
		        {
					if(_InitContent1_W == null)
	        	    {
						_InitContent1_W = TearOff.InitContent1;
					}
					return _InitContent1_W;
				}
			}

			public AggregateParameter InitContent2
		    {
				get
		        {
					if(_InitContent2_W == null)
	        	    {
						_InitContent2_W = TearOff.InitContent2;
					}
					return _InitContent2_W;
				}
			}

			public AggregateParameter InitContent3
		    {
				get
		        {
					if(_InitContent3_W == null)
	        	    {
						_InitContent3_W = TearOff.InitContent3;
					}
					return _InitContent3_W;
				}
			}

			public AggregateParameter CruiseDurationID
		    {
				get
		        {
					if(_CruiseDurationID_W == null)
	        	    {
						_CruiseDurationID_W = TearOff.CruiseDurationID;
					}
					return _CruiseDurationID_W;
				}
			}

			public AggregateParameter Images
		    {
				get
		        {
					if(_Images_W == null)
	        	    {
						_Images_W = TearOff.Images;
					}
					return _Images_W;
				}
			}

			public AggregateParameter Status
		    {
				get
		        {
					if(_Status_W == null)
	        	    {
						_Status_W = TearOff.Status;
					}
					return _Status_W;
				}
			}

			public AggregateParameter PriceFrom
		    {
				get
		        {
					if(_PriceFrom_W == null)
	        	    {
						_PriceFrom_W = TearOff.PriceFrom;
					}
					return _PriceFrom_W;
				}
			}

			public AggregateParameter PriceTo
		    {
				get
		        {
					if(_PriceTo_W == null)
	        	    {
						_PriceTo_W = TearOff.PriceTo;
					}
					return _PriceTo_W;
				}
			}

			public AggregateParameter VideoLink
		    {
				get
		        {
					if(_VideoLink_W == null)
	        	    {
						_VideoLink_W = TearOff.VideoLink;
					}
					return _VideoLink_W;
				}
			}

			public AggregateParameter Content1
		    {
				get
		        {
					if(_Content1_W == null)
	        	    {
						_Content1_W = TearOff.Content1;
					}
					return _Content1_W;
				}
			}

			public AggregateParameter Content2
		    {
				get
		        {
					if(_Content2_W == null)
	        	    {
						_Content2_W = TearOff.Content2;
					}
					return _Content2_W;
				}
			}

			public AggregateParameter Content3
		    {
				get
		        {
					if(_Content3_W == null)
	        	    {
						_Content3_W = TearOff.Content3;
					}
					return _Content3_W;
				}
			}

			public AggregateParameter CountryID
		    {
				get
		        {
					if(_CountryID_W == null)
	        	    {
						_CountryID_W = TearOff.CountryID;
					}
					return _CountryID_W;
				}
			}

			public AggregateParameter ImageDetail1
		    {
				get
		        {
					if(_ImageDetail1_W == null)
	        	    {
						_ImageDetail1_W = TearOff.ImageDetail1;
					}
					return _ImageDetail1_W;
				}
			}

			public AggregateParameter ImageDetail2
		    {
				get
		        {
					if(_ImageDetail2_W == null)
	        	    {
						_ImageDetail2_W = TearOff.ImageDetail2;
					}
					return _ImageDetail2_W;
				}
			}

			public AggregateParameter ImageDetail3
		    {
				get
		        {
					if(_ImageDetail3_W == null)
	        	    {
						_ImageDetail3_W = TearOff.ImageDetail3;
					}
					return _ImageDetail3_W;
				}
			}

			public AggregateParameter ImageDetail4
		    {
				get
		        {
					if(_ImageDetail4_W == null)
	        	    {
						_ImageDetail4_W = TearOff.ImageDetail4;
					}
					return _ImageDetail4_W;
				}
			}

			public AggregateParameter ImageDetail5
		    {
				get
		        {
					if(_ImageDetail5_W == null)
	        	    {
						_ImageDetail5_W = TearOff.ImageDetail5;
					}
					return _ImageDetail5_W;
				}
			}

			public AggregateParameter Priority
		    {
				get
		        {
					if(_Priority_W == null)
	        	    {
						_Priority_W = TearOff.Priority;
					}
					return _Priority_W;
				}
			}

			public AggregateParameter CruiseRegion
		    {
				get
		        {
					if(_CruiseRegion_W == null)
	        	    {
						_CruiseRegion_W = TearOff.CruiseRegion;
					}
					return _CruiseRegion_W;
				}
			}

			public AggregateParameter Type
		    {
				get
		        {
					if(_Type_W == null)
	        	    {
						_Type_W = TearOff.Type;
					}
					return _Type_W;
				}
			}

			public AggregateParameter Content1_2day
		    {
				get
		        {
					if(_Content1_2day_W == null)
	        	    {
						_Content1_2day_W = TearOff.Content1_2day;
					}
					return _Content1_2day_W;
				}
			}

			public AggregateParameter Content2_2day
		    {
				get
		        {
					if(_Content2_2day_W == null)
	        	    {
						_Content2_2day_W = TearOff.Content2_2day;
					}
					return _Content2_2day_W;
				}
			}

			public AggregateParameter Content3_2day
		    {
				get
		        {
					if(_Content3_2day_W == null)
	        	    {
						_Content3_2day_W = TearOff.Content3_2day;
					}
					return _Content3_2day_W;
				}
			}

			public AggregateParameter Content1_3day
		    {
				get
		        {
					if(_Content1_3day_W == null)
	        	    {
						_Content1_3day_W = TearOff.Content1_3day;
					}
					return _Content1_3day_W;
				}
			}

			public AggregateParameter Content2_3day
		    {
				get
		        {
					if(_Content2_3day_W == null)
	        	    {
						_Content2_3day_W = TearOff.Content2_3day;
					}
					return _Content2_3day_W;
				}
			}

			public AggregateParameter Content3_3day
		    {
				get
		        {
					if(_Content3_3day_W == null)
	        	    {
						_Content3_3day_W = TearOff.Content3_3day;
					}
					return _Content3_3day_W;
				}
			}

			private AggregateParameter _CruiseID_W = null;
			private AggregateParameter _Title1_W = null;
			private AggregateParameter _Title2_W = null;
			private AggregateParameter _Title3_W = null;
			private AggregateParameter _InitContent1_W = null;
			private AggregateParameter _InitContent2_W = null;
			private AggregateParameter _InitContent3_W = null;
			private AggregateParameter _CruiseDurationID_W = null;
			private AggregateParameter _Images_W = null;
			private AggregateParameter _Status_W = null;
			private AggregateParameter _PriceFrom_W = null;
			private AggregateParameter _PriceTo_W = null;
			private AggregateParameter _VideoLink_W = null;
			private AggregateParameter _Content1_W = null;
			private AggregateParameter _Content2_W = null;
			private AggregateParameter _Content3_W = null;
			private AggregateParameter _CountryID_W = null;
			private AggregateParameter _ImageDetail1_W = null;
			private AggregateParameter _ImageDetail2_W = null;
			private AggregateParameter _ImageDetail3_W = null;
			private AggregateParameter _ImageDetail4_W = null;
			private AggregateParameter _ImageDetail5_W = null;
			private AggregateParameter _Priority_W = null;
			private AggregateParameter _CruiseRegion_W = null;
			private AggregateParameter _Type_W = null;
			private AggregateParameter _Content1_2day_W = null;
			private AggregateParameter _Content2_2day_W = null;
			private AggregateParameter _Content3_2day_W = null;
			private AggregateParameter _Content1_3day_W = null;
			private AggregateParameter _Content2_3day_W = null;
			private AggregateParameter _Content3_3day_W = null;

			public void AggregateClauseReset()
			{
				_CruiseID_W = null;
				_Title1_W = null;
				_Title2_W = null;
				_Title3_W = null;
				_InitContent1_W = null;
				_InitContent2_W = null;
				_InitContent3_W = null;
				_CruiseDurationID_W = null;
				_Images_W = null;
				_Status_W = null;
				_PriceFrom_W = null;
				_PriceTo_W = null;
				_VideoLink_W = null;
				_Content1_W = null;
				_Content2_W = null;
				_Content3_W = null;
				_CountryID_W = null;
				_ImageDetail1_W = null;
				_ImageDetail2_W = null;
				_ImageDetail3_W = null;
				_ImageDetail4_W = null;
				_ImageDetail5_W = null;
				_Priority_W = null;
				_CruiseRegion_W = null;
				_Type_W = null;
				_Content1_2day_W = null;
				_Content2_2day_W = null;
				_Content3_2day_W = null;
				_Content1_3day_W = null;
				_Content2_3day_W = null;
				_Content3_3day_W = null;

				this._entity.Query.FlushAggregateParameters();

			}
	
			private EasyObject _entity;
			private TearOffAggregateParameter _tearOff;
			
		}
	
		public AggregateClause Aggregate
		{
			get
			{
				if(_aggregateClause == null)
				{
					_aggregateClause = new AggregateClause(this);
				}
		
				return _aggregateClause;
			}
		}
		
		private AggregateClause _aggregateClause = null;	
		#endregion
	}
}
